home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / utmisc1 / maprz2_e.lha / MapRZ2_EVD1_1 / VGADOC / vgaregs.txt < prev   
Text File  |  1996-03-27  |  22KB  |  445 lines

  1. 3C0h:  Attribute Controller: Address register
  2. bit 0-4  Address of data register to write to port 3C0h or read from port 3C1h
  3.       5  If set screen output is enabled and the palette can not be modified,
  4.          if clear screen output is disabled and the palette can be modified.
  5.  
  6.  
  7. Port 3C0h is special in that it is both address and data-write register.
  8. An internal flip-flop remembers whether it is currently acting as address or
  9.  data register. Data reads happen from port 3C1h.
  10. Accesses to the attribute controller must be separated by at least 250ns.
  11. Reading port 3dAh will reset the flip-flop to address mode.
  12.  
  13.  
  14. 3C0h index 0-Fh  (R/W):  Attribute: Palette
  15. bit 0-5  Index into the 256 color DAC table. May be modified by 3C0h index
  16.           10h and 14h.
  17.  
  18. 3C0h index 10h (R/W):  Attribute: Mode Control Register
  19. bit   0  Graphics mode if set, Alphanumeric mode else.
  20.       1  Monochrome mode if set, color mode else.
  21.       2  9-bit wide characters if set.
  22.          The 9th bit of characters C0h-DFh will be the same as
  23.          the 8th bit. Otherwise it will be the background color.
  24.       3  If set Attribute bit 7 is blinking, else high intensity.
  25.       5  If set the PEL panning register (3C0h index 13h) is temporarily set
  26.          to 0 from when the line compare causes a wrap around until the next
  27.          vertical retrace when the register is automatically reloaded with
  28.          the old value, else the PEL panning register ignores line compares.
  29.       6  If set pixels are 8 bits wide. Used in 256 color modes.
  30.       7  If set bit 4-5 of the index into the DAC table are taken from port
  31.          3C0h index 14h bit 0-1, else the bits in the palette register are
  32.          used.
  33.  
  34. 3C0h index 11h (R/W):  Attribute: Overscan Color Register.
  35. bit 0-5  Color of screen border. Color is defined as in the palette registers.
  36.  
  37. 3C0h index 12h (R/W):  Attribute: Color Plane Enable Register
  38. bit   0  Bit plane 0 is enabled if set.
  39.       1  Bit plane 1 is enabled if set.
  40.       2  Bit plane 2 is enabled if set.
  41.       3  Bit plane 3 is enabled if set.
  42.     4-5  Video Status MUX. Diagnostics use only.
  43.          Two attribute bits appear on bits 4 and 5 of the Input Status
  44.          Register 1 (3dAh). 0: Bit 2/0, 1: Bit 5/4, 2: bit 3/1, 3: bit 7/6
  45.  
  46. 3C0h index 13h (R/W):  Attribute: Horizontal PEL Panning Register
  47. bit 0-3  Indicates number of pixels to shift the display left
  48.          Value  9bit textmode   256color mode   Other modes
  49.            0          1               0              0
  50.            1          2              n/a             1
  51.            2          3               1              2
  52.            3          4              n/a             3
  53.            4          5               2              4
  54.            5          6              n/a             5
  55.            6          7               3              6
  56.            7          8              n/a             7
  57.            8          0              n/a            n/a
  58.  
  59. 3C0h index 14h (R/W):  Attribute: Color Select Register
  60. bit 0-1  If 3C0h index 10h bit 7 is set these 2 bits are used as bits 4-5 of
  61.          the index into the DAC table.
  62.     2-3  These 2 bits are used as bit 6-7 of the index into the DAC table
  63.          except in 256 color mode.
  64. Note: this register does not affect 256 color modes.
  65.  
  66. 3C2h (R):  Input Status #0 Register
  67. bit   4  Status of the switch selected by the Miscellaneous Output
  68.          Register 3C2h bit 2-3. Switch high if set.
  69.       7  (EGA Only ??) If set IRQ 2 has happened due to Vertical Retrace.
  70.          Should be cleared by IRQ 2 interrupt routine by clearing port 3d4h
  71.          index 11h bit 4.
  72.  
  73. 3C2h (W):  Miscellaneous Output Register
  74. bit   0  If set Color Emulation. Base Address=3Dxh else Mono Emulation. Base
  75.          Address=3Bxh.
  76.       1  Enable CPU Access to video memory if set
  77.     2-3  Clock Select. 0: 25MHz, 1: 28MHz
  78.       5  When in Odd/Even modes Select High 64k bank if set
  79.       6  Horizontal Sync Polarity. Negative if set
  80.       7  Vertical Sync Polarity. Negative if set
  81.          Bit 6-7 indicates the number of lines on the display:
  82.             1:  400, 2: 350, 3: 480
  83. Note: Set to all zero on a hardware reset.
  84. Note: This register can be read from port 3CCh.
  85.  
  86. 3C3h (W):  Video Subsystem Enable Register
  87. bit   0  Enables the VGA display if set
  88.  
  89. 3C4h index  0  (R/W):  Sequencer: Reset
  90. bit   0  Synchronous Reset just as bit 1
  91.       1  Synchronous Reset if clear
  92.  
  93. 3C4h index  1  (R/W):  Sequencer: Clocking Mode
  94. bit   0  If set character clocks are 8 dots wide, else 9.
  95.       2  If set loads video serializers every other character
  96.          clock cycle, else every one.
  97.       3  If set the Dot Clock is Master Clock/2, else same as Master Clock
  98.           (See 3C2h bit 2-3). (Doubles pixels). Note: on some SVGA chipsets
  99.          this bit also affects the Sequencer mode.
  100.       4  If set loads video serializers every fourth character clock cycle,
  101.          else every one.
  102.       5  if set turns off screen and gives all memory cycles to the CPU
  103.          interface.
  104.  
  105. 3C4h index  2  (R/W):  Sequencer: Map Mask Register
  106. bit   0  Enable writes to plane 0 if set
  107.       1  Enable writes to plane 1 if set
  108.       2  Enable writes to plane 2 if set
  109.       3  Enable writes to plane 3 if set
  110.  
  111. 3C4h index  3  (R/W):  Sequencer: Character Map Select Register
  112. bit 0,1,4  Selects VGA Character Map (0..7) if bit 3 of the character
  113.            attribute is clear.
  114.     2,3,5  Selects VGA Character Map (0..7) if bit 3 of the character
  115.            attribute is set.
  116. Note: Character Maps are placed as follows:
  117.       Map 0 at 0k, 1 at 16k, 2 at 32k, 3: 48k, 4: 8k, 5: 24k, 6: 40k, 7: 56k
  118.  
  119. 3C4h index  4  (R/W):  Sequencer: Memory Mode Register
  120. bit   0  Set if in an alphanumeric mode, clear in graphics modes.
  121.       1  Set if more than 64kbytes on the adapter.
  122.       2  Enables Odd/Even addressing mode if set. Odd/Even mode places all odd
  123.          bytes in plane 1&3, and all even bytes in plane 0&2.
  124.       3  If set address bit 0-1 selects video memory planes (256 color mode),
  125.          rather than the Map Mask and Read Map Select Registers.
  126.  
  127. 3C4h index 7 (R/W):  Sequencer Horizontal Character Counter Reset Register.
  128. Note: Undocumented by IBM. May not be available in all clones.
  129.       A write to this register will cause the Horizontal Character Counter
  130.       to be held reset (=0) until a write happens to any of the Sequencer
  131.       registers index 0..6.
  132.       The Vertical Line counter is clocked by a signal derived from the
  133.       Horizontal Display Enable (which does not occur if the Horizontal
  134.       Character Counter is held reset).
  135.       Thus a write to index 7 during Vertical Retrace can stop the display
  136.       timing and allow software to start the next frame reasonably
  137.       synchronous to an external event.
  138.  
  139. 3C6h (R/W):  PEL Mask
  140. bit 0-7  This register is anded with the palette index sent for each dot.
  141.          Should be set to FFh.
  142.  
  143. 3C7h (R):  DAC State Register
  144. bit 0-1  0 indicates the DAC is in Write Mode and 3 indicates Read mode.
  145.  
  146. 3C7h (W):  PEL Address Read Mode
  147. bit 0-7  The PEL data register (0..255) to be read from 3C9h.
  148. Note: After reading the 3 bytes at 3C9h this register will increment,
  149.       pointing to the next data register.
  150.  
  151. 3C8h (R/W):  PEL Address Write Mode
  152. bit 0-7  The PEL data register (0..255) to be written to 3C9h.
  153. Note: After writing the 3 bytes at 3C9h this register will increment, pointing
  154.       to the next data register.
  155.  
  156. 3C9h (R/W):  PEL Data Register
  157. bit 0-5  Color value
  158. Note:  Each read or write of this register will cycle through first the
  159.        registers for Red, Blue and Green, then increment the appropriate
  160.        address register, thus the entire palette can be loaded by writing 0 to
  161.        the PEL Address Write Mode register 3C8h and then writing all 768 bytes
  162.        of the palette to this register.
  163.  
  164. 3CAh (R):  Feature Control Register
  165. Bit   3  Vertical Sync Select. If set Vertical Sync to the monitor is the
  166.          logical OR of the vertical sync and the vertical display enable.
  167. Note: This register is written to port 3dAh and read from 3CAh.
  168.  
  169. 3CCh (R):  Miscellaneous Output Register
  170. bit   0  If set Color Emulation. Base Address=3Dxh else Mono Emulation. Base
  171.          Address=3Bxh.
  172.       1  Enable CPU Access to video memory if set
  173.     2-3  Clock Select. 0= 25MHz, 1= 28MHz, 2= Reserved
  174.       5  When in Odd/Even modes Select High 64k bank if set
  175.       6  Horizontal Sync Polarity. Negative if set
  176.       7  Vertical Sync Polarity. Negative if set
  177.          Bit 6-7 indicates the number of lines on the display:
  178.             0=Reserved, 1=400, 2=350, 3=480.
  179. Note: This register is written to port 3C2h and read from port 3CCh.
  180.  
  181. 3CEh index  0  (R/W):  Graphics: Set/Reset Register
  182. bit   0  If in Write Mode 0 and bit 0 of 3CEh index 1 is set a write to
  183.          display memory will set all the bits in plane 0 of the byte to this
  184.          bit, if the corresponding bit is set in the Map Mask Register (3CEh
  185.          index 8).
  186.       1  Same for plane 1 and bit 1 of 3CEh index 1.
  187.       2  Same for plane 2 and bit 2 of 3CEh index 1.
  188.       3  Same for plane 3 and bit 3 of 3CEh index 1.
  189.  
  190. 3CEh index  1  (R/W):  Graphics: Enable Set/Reset Register
  191. bit   0  If set enables Set/reset of plane 0 in Write Mode 0.
  192.       1  Same for plane 1.
  193.       2  Same for plane 2.
  194.       3  Same for plane 3.
  195.  
  196. 3CEh index  2  (R/W):  Graphics: Color Compare Register
  197. bit 0-3  In Read Mode 1 each pixel at the address of the byte read is compared
  198.          to this color and the corresponding bit in the output set to 1 if
  199.          they match, 0 if not. The Color Don't Care Register (3CEh index 7)
  200.          can exclude bitplanes from the comparison.
  201.  
  202. 3CEh index  3  (R/W):  Graphics: Data Rotate
  203. bit 0-2  Number of positions to rotate data right before it is written to
  204.          display memory. Only active in Write Mode 0.
  205.     3-4  In Write Mode 2 this field controls the relation between the data
  206.          written from the CPU, the data latched from the previous read and the
  207.          data written to display memory:
  208.            0: CPU Data is written unmodified
  209.            1: CPU data is ANDed with the latched data
  210.            2: CPU data is ORed  with the latch data.
  211.            3: CPU data is XORed with the latched data.
  212.  
  213. 3CEh index  4  (R/W):  Graphics: Read Map Select Register
  214. bit 0-1  Number of the plane Read Mode 0 will read from.
  215.  
  216. 3CEh index  5  (R/W):  Graphics: Mode Register
  217. bit 0-1  Write Mode: Controls how data from the CPU is transformed before
  218.          being written to display memory:
  219.            0: Mode 0 works as a Read-Modify-Write operation.
  220.               First a read access loads the data latches of the VGA with the
  221.               value in video memory at the addressed location. Then a write
  222.               access will provide the destination address and the CPU data
  223.               byte. The data written is modified by the function code in the
  224.               Data Rotate register (3CEh index 3) as a function of the CPU
  225.               data and the latches, then data is rotated as specified by the
  226.               same register.
  227.            1: Mode 1 is used for video to video transfers.
  228.               A read access will load the data latches with the contents of
  229.               the addressed byte of video memory. A write access will write
  230.               the contents of the latches to the addressed byte. Thus a single
  231.               MOVSB instruction can copy all pixels in the source address byte
  232.               to the destination address.
  233.            2: Mode 2 writes a color to all pixels in the addressed byte of
  234.               video memory. Bit 0 of the CPU data is written to plane 0 et
  235.               cetera. Individual bits can be enabled or disabled through the
  236.               Bit Mask register (3CEh index 8).
  237.            3: Mode 3 can be used to fill an area with a color and pattern. The
  238.               CPU data is rotated according to 3CEh index 3 bits 0-2 and anded
  239.               with the Bit Mask Register (3CEh index 8). For each bit in the
  240.               result the corresponding pixel is set to the color in the
  241.               Set/Reset Register (3CEh index 0 bits 0-3) if the bit is set and
  242.               to the contents of the processor latch if the bit is clear.
  243.       3  Read Mode
  244.            0: Data is read from one of 4 bit planes depending on the Read Map
  245.               Select Register (3CEh index 4).
  246.            1: Data returned is a comparison between the 8 pixels occupying the
  247.               read byte and the color in the Color Compare Register (3CEh
  248.               index 2). A bit is set if the color of the corresponding pixel
  249.               matches the register.
  250.       4  Enables Odd/Even mode if set (See 3C4h index 4 bit 2).
  251.       5  Enables CGA style 4 color pixels using even/odd bit pairs if set.
  252.       6  Enables 256 color mode if set.
  253.  
  254. 3CEh index  6  (R/W):  Graphics: Miscellaneous Register
  255. bit   0  Indicates Graphics Mode if set, Alphanumeric mode else.
  256.       1  Enables Odd/Even mode if set.
  257.     2-3  Memory Mapping:
  258.            0: use A000h-BFFFh
  259.            1: use A000h-AFFFh   VGA Graphics modes
  260.            2: use B000h-B7FFh   Monochrome modes
  261.            3: use B800h-BFFFh   CGA modes
  262.  
  263. 3CEh index  7  (R/W):  Graphics: Color Don't Care Register
  264. bit   0  Ignore bit plane 0 in Read mode 1 if clear.
  265.       1  Ignore bit plane 1 in Read mode 1 if clear.
  266.       2  Ignore bit plane 2 in Read mode 1 if clear.
  267.       3  Ignore bit plane 3 in Read mode 1 if clear.
  268.  
  269. 3CEh index  8  (R/W):  Graphics: Bit Mask Register
  270. bit 0-7  Each bit if set enables writing to the corresponding bit of a byte in
  271.          display memory.
  272.  
  273. 3d4h index  0  (R/W):  CRTC: Horizontal Total Register
  274. bit 0-7  Horizontal Total Character Clocks-5
  275.  
  276. 3d4h index  1  (R/W):  CRTC: Horizontal Display End Register
  277. bit 0-7  Number of Character Clocks Displayed -1
  278.  
  279. 3d4h index  2  (R/W):  CRTC: Start Horizontal Blanking Register
  280. bit 0-7  The count at which Horizontal Blanking starts
  281.  
  282. 3d4h index  3  (R/W):  CRTC: End Horizontal Blanking Register
  283. bit 0-4  Horizontal Blanking ends when the last 6 bits of the character
  284.          counter equals this field. Bit 5 is at 3d4h index 5 bit 7.
  285.     5-6  Number of character clocks to delay start of display after Horizontal
  286.          Total has been reached.
  287.       7  Access to Vertical Retrace registers if set. If clear reads to 3d4h
  288.          index 10h and 11h access the Lightpen read back registers ??
  289.  
  290. 3d4h index  4  (R/W):  CRTC: Start Horizontal Retrace Register
  291. bit 0-7  Horizontal Retrace starts when the Character Counter reaches this
  292.          value.
  293.  
  294. 3d4h index  5  (R/W):  CRTC: End Horizontal Retrace Register
  295. bit 0-4  Horizontal Retrace ends when the last 5 bits of the character counter
  296.          equals this value.
  297.     5-6  Number of character clocks to delay start of display after Horizontal
  298.          Retrace.
  299.       7  bit 5 of the End Horizontal Blanking count (See 3d4h index 3 bit 0-4)
  300.  
  301. 3d4h index  6  (R/W):  CRTC: Vertical Total Register
  302. bit 0-7  Lower 8 bits of the Vertical Total. Bit 8 is found in 3d4h index 7
  303.          bit 0. Bit 9 is found in 3d4h index 7 bit 5.
  304. Note: For the VGA this value is the number of scan lines in the display -2.
  305.  
  306. 3d4h index  7  (R/W):  CRTC: Overflow Register
  307. bit   0  Bit 8 of Vertical Total (3d4h index 6)
  308.       1  Bit 8 of Vertical Display End (3d4h index 12h)
  309.       2  Bit 8 of Vertical Retrace Start (3d4h index 10h)
  310.       3  Bit 8 of Start Vertical Blanking (3d4h index 15h)
  311.       4  Bit 8 of Line Compare Register (3d4h index 18h)
  312.       5  Bit 9 of Vertical Total (3d4h index 6)
  313.       6  Bit 9 of Vertical Display End (3d4h index 12h)
  314.       7  Bit 9 of Vertical Retrace Start (3d4h index 10h)
  315.  
  316. 3d4h index  8  (R/W):  CRTC: Preset Row Scan Register
  317. bit 0-4  Number of lines we have scrolled down in the first character row.
  318.          Provides Smooth Vertical Scrolling.
  319.     5-6  Number of bytes to skip at the start of scanline. Provides Smooth
  320.          Horizontal Scrolling together with the Horizontal Panning Register
  321.          (3C0h index 13h).
  322.  
  323. 3d4h index  9  (R/W):  CRTC: Maximum Scan Line Register
  324. bit 0-4  Number of scan lines in a character row -1. In graphics modes this is
  325.          the number of times (-1) the line is displayed before passing on to
  326.          the next line (0: normal, 1: double, 2: triple...).
  327.          This is independent of bit 7, except in CGA modes which seems to
  328.          require this field to be 1 and bit 7 to be set to work.
  329.       5  Bit 9 of Start Vertical Blanking
  330.       6  Bit 9 of Line Compare Register
  331.       7  Doubles each scan line if set. I.e. displays 200 lines on a 400
  332.          display.
  333.  
  334. 3d4h index  Ah (R/W):  CRTC: Cursor Start Register
  335. bit 0-4  First scanline of cursor within character.
  336.       5  Turns Cursor off if set
  337.  
  338. 3d4h index  Bh (R/W):  CRTC: Cursor End Register
  339. bit 0-4  Last scanline of cursor within character
  340.     5-6  Delay of cursor data in character clocks.
  341.  
  342. 3d4h index  Ch (R/W):  CRTC: Start Address High Register
  343. bit 0-7  Upper 8 bits of the start address of the display buffer
  344.  
  345. 3d4h index  Dh (R/W):  CRTC: Start Address Low Register
  346. bit 0-7  Lower 8 bits of the start address of the display buffer
  347.  
  348. 3d4h index  Eh (R/W):  CRTC: Cursor Location High Register
  349. bit 0-7  Upper 8 bits of the address of the cursor
  350.  
  351. 3d4h index  Fh (R/W):  CRTC: Cursor Location Low Register
  352. bit 0-7  Lower 8 bits of the address of the cursor
  353.  
  354. 3d4h index 10h (R/W):  CRTC: Vertical Retrace Start Register
  355. bit 0-7  Lower 8 bits of Vertical Retrace Start. Vertical Retrace starts when
  356.          the line counter reaches this value. Bit 8 is found in 3d4h index 7
  357.          bit 2. Bit 9 is found in 3d4h index 7 bit 7.
  358.  
  359. 3d4h index 11h (R/W):  CRTC: Vertical Retrace End Register
  360. bit 0-3  Vertical Retrace ends when the last 4 bits of the line counter equals
  361.          this value.
  362.       4  if clear Clears pending Vertical Interrupts.
  363.       5  Vertical Interrupts (IRQ 2) disabled if set. Can usually be left
  364.          disabled, but some systems (including PS/2) require it to be enabled.
  365.       6  If set selects 5 refresh cycles per scanline rather than 3.
  366.       7  Disables writing to registers 0-7 if set 3d4h index 7 bit 4 is not
  367.          affected by this bit.
  368.  
  369. 3d4h index 12h (R/W):  CRTC: Vertical Display End Register
  370. bit 0-7  Lower 8 bits of Vertical Display End. The display ends when the line
  371.          counter reaches this value. Bit 8 is found in 3d4h index 7 bit 1.
  372.          Bit 9 is found in 3d4h index 7 bit 6.
  373.  
  374. 3d4h index 13h (R/W):  CRTC: Offset register
  375. bit 0-7  Number of bytes in a scanline / K. Where K is 2 for byte mode, 4 for
  376.          word mode and 8 for Double Word mode.
  377.  
  378. 3d4h index 14h (R/W):  CRTC: Underline Location Register
  379. bit 0-4  Position of underline within Character cell.
  380.       5  If set memory address is only changed every fourth character clock.
  381.       6  Double Word mode addressing if set
  382.  
  383. 3d4h index 15h (R/W):  CRTC: Start Vertical Blank Register
  384. bit 0-7  Lower 8 bits of Vertical Blank Start. Vertical blanking starts when
  385.          the line counter reaches this value. Bit 8 is found in 3d4h index 7
  386.          bit 3.
  387.  
  388. 3d4h index 16h (R/W):  CRTC: End Vertical Blank Register
  389. bit 0-6  Vertical blanking stops when the lower 7 bits of the line counter
  390.          equals this field. Some SVGA chips uses all 8 bits!
  391.  
  392. 3d4h index 17h (R/W):  CRTC: Mode Control Register
  393. bit   0  If clear use CGA compatible memory addressing system
  394.          by substituting character row scan counter bit 0 for address bit 13,
  395.          thus creating 2 banks for even and odd scan lines.
  396.       1  If clear use Hercules compatible memory addressing system by
  397.          substituting character row scan counter bit 1 for address bit 14,
  398.          thus creating 4 banks.
  399.       2  If set increase scan line counter only every second line.
  400.       3  If set increase memory address counter only every other character
  401.          clock.
  402.       5  When in Word Mode bit 15 is rotated to bit 0 if this bit is set else
  403.          bit 13 is rotated into bit 0.
  404.       6  If clear system is in word mode. Addresses are rotated 1 position up
  405.          bringing either bit 13 or 15 into bit 0.
  406.       7  Clearing this bit will reset the display system until the bit is set
  407.          again.
  408.  
  409. 3d4h index 18h (R/W):  CRTC: Line Compare Register
  410. bit 0-7  Lower 8 bits of the Line Compare. When the Line counter reaches this
  411.          value, the display address wraps to 0. Provides Split Screen
  412.          facilities. Bit 8 is found in 3d4h index 7 bit 4.
  413.          Bit 9 is found in 3d4h index 9 bit 6.
  414.  
  415. 3d4h index 22h (R):  Memory Latch Register                       (VGA - Undoc)
  416. bit 0-7  Reads the contents of the Graphics Controller Memory Data Latch for
  417.          the plane selected by 3C0h index 4 bit 0-1 (Read Map Select).
  418. Note: This register is not documented by IBM and may not be available on all
  419.       clones.
  420.  
  421. 3d4h index 24h (R):  Attribute Controller Toggle Register.       (VGA - Undoc)
  422. bit 0-4  Attribute Controller Index.
  423.          The current value of the Attribute Index Register.
  424.       5  Palette Address Source. Same as 3C0h bit 5.
  425.       7  If set next read or write to 3C0h will access the data register.
  426. Note: This register is not documented by IBM and may not be available on all
  427.       clones.
  428.  
  429. 3d4h index 30h-3Fh (W):  Clear Vertical Display Enable.          (VGA - Undoc)
  430. bit   0  Setting this bit will clear the Vertical Display Enable thus blanking
  431.          the display for the rest of the frame and giving the CPU total access
  432.          to display memory until the start of the next frame.
  433. Note: This register is not documented by IBM and may not be available on all
  434.       clones.
  435.  
  436. 3dAh (R):  Input Status #1 Register
  437. bit   0  Either Vertical or Horizontal Retrace active if set
  438.       3  Vertical Retrace in progress if set
  439.  
  440. 3dAh (W):  Feature Control Register
  441. bit   3  Vertical Sync Select. If set Vertical Sync to the monitor is the
  442.          logical OR of the vertical sync and the vertical display enable.
  443. Note: This register can be read from port 3CAh.
  444.  
  445.